package com.gxa.xx.service;

import com.gxa.xx.DO.YiZhu;
import com.gxa.xx.dao.YiZhuDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YiZhuService {

    private YiZhuDao yiZhuDao;

    public YiZhuService(YiZhuDao yiZhuDao) {
        this.yiZhuDao = yiZhuDao;
    }

    public List<YiZhu> queryAllYiZhu() {
        return yiZhuDao.queryAllByLimit(0, 10);
    }
}
